package com.zzt.questionbankquestion.mapper;

import com.zzt.questionbankquestion.bean.QuestionType;
import com.zzt.questionbankquestion.bean.dto.QuestionTypeDTO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper(componentModel="spring")
public interface QuestionTypeConverter {
    QuestionTypeConverter INSTANCE= Mappers.getMapper(QuestionTypeConverter.class);

    QuestionType dtoToDo(QuestionTypeDTO dto);
    List<QuestionType> dtoToDo(List<QuestionTypeDTO> dtos);
    QuestionTypeDTO doToDto(QuestionType questionType);
    List<QuestionTypeDTO> doToDto(List<QuestionType> questionTypes);
}
